//
//  BottomView.h
//  BaseView
//
//  Created by 隗杰 on 16/3/31.
//  Copyright © 2016年 baobao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@class BottomView;
@protocol BottomViewDelegate <NSObject>

- (void)bottomViewDidClickLastAudioBtn:(BottomView *)bottomView;
- (void)bottomViewDidClickNextAudioBtn:(BottomView *)bottomView;
- (void)bottomViewDidPlayOrStop:(BottomView *)bottom butnSelected:(BOOL)selected;
- (void)bottomViewSliderViewDidChangeValue:(BottomView *)bottomView senderValue:(float)value;


@end

@interface BottomView : UIView
@property (assign,nonatomic)CMTime duration;
@property (assign,nonatomic)float progress;
@property (assign,nonatomic)float currentSecond;
@property (copy,nonatomic)NSString *timeText;
@property (assign,nonatomic)id<BottomViewDelegate> delegate;

+(instancetype)sharedBottomView;
@end
